<?php 

/*
Template name: Archives
*/
get_header();
?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
	<ul id="posts">
	 	<li class="post">
	 		<div class="post_content page archivepage" id="post-<?php the_ID(); ?>">
	 			<h2 class="title"><?php the_title(); ?></h2>
	 			<div class="txt">
	 				
	 				<?php the_content(); ?>
	 				<h3>Category</h3>
					<ul id="archivepage">
						<?php wp_list_categories('sort_column=name&show_count=1&title_li='); ?>
					</ul>
					
	 			</div>
	 			
	 		</div>
	 	</li>
	</ul>
	
<?php
	endwhile;
	else :
		echo walleve_404_message(); 
	endif;
?>

	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>


<?php get_footer(); ?>